<template>
  <div class="main-box">
    <div class="main">
      <div class="search-box">
        <slot name="search"></slot>
      </div>
      <div class="custom-divider"></div>
      <div class="table-box">
        <slot></slot>
      </div>
    </div>
  </div>
</template>
<script lang="ts">
  export default {
    name: 'LayoutDividerPage',
  }
</script>

<style lang="scss" scoped>
  .main-box {
    box-sizing: border-box;
    width: 100%;

    .main {
      box-sizing: border-box;
      width: 100%;
      height: auto;
      overflow: hidden;

      .search-box {
        box-sizing: border-box;
        width: 100%;
        height: auto;
      }

      .table-box {
        box-sizing: border-box;
        width: 100%;
        height: auto;

        .operate-box {
          padding-bottom: 10px;
          text-align: right;
        }
      }
    }

    :deep(.custom-form) {
      .vxe-form--item {
        padding: 0 24px 20px 0;
      }

      .vxe-form--item-title-label {
        vertical-align: inherit;
      }

      .vxe-form--item-title {
        padding: 0 8px 0 0;
      }

      .custom-form-button {
        padding: 0 0 18px 0;
      }
    }

    :deep(.custom-divider) {
      position: relative;
      height: 1px;
      background-color: #edeff2;

      &:before {
        position: absolute;
        top: 0;
        right: -20px;
        left: -20px;
        height: 1px;
        content: '';
        background-color: #edeff2;
      }
    }
  }
</style>
